

<template>
  <expenses v-if="loadCompeted" />
</template>
<script>
import expenses from '@/views/project-expenses/index.vue';
export default {
  components: {
    expenses
  },
  data() {
    return {
      loadCompeted: false
    }
  },
  created() {
    window.eventService.onceEvent('rpc-ready', (e) => {
      console.log("握手成功12", e)
      this.init()
    })
  },
  methods: {
    async init() {
      // 开发测试开启
      this.loadCompeted = true
      window.systemService.getServerUrl().then(url => {
        this.$store.commit('search/setUrl', url)
        this.loadCompeted = true
      });

    }

  }
}
</script>
